<template>
  <div>
    <h1>这是App根组件---{{count}}</h1>
    <button @click="count++">+1</button>
    <hr>
    <my-count v-model:number="count"></my-count>
  </div>
</template>

<script>
import MyCount from './count.vue'
export default {
  components: { MyCount },
  name:'MyApp',
  data(){
    return{
      count:0
    }
  }
}
</script>

<style>

</style>